import Vue from 'vue'
import Router from 'vue-router'
import main from '@/views/main'
import quTble from '@/views/table'
import quLine from '@/views/line'
import setting from '@/views/setting'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: main,
      children: [
        {
            path: '/',
            component: quTble
        },
        {
          path: '/table',
          component: quTble
        },
        {
          path: '/line',
          component: quLine
        },
        {
          path: '/setting',
          component: setting
        }
      ]
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
